package com.lkd.controller;

import com.lkd.entity.Business;
import com.lkd.mapper.BusinessMapper;
import com.lkd.result.Result;
import com.lkd.service.BusinessService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/vm-service/")
@Slf4j
public class BusinessController {
    @Autowired
    private BusinessService businessService;
    @GetMapping("businessType")
    public Result getBusinessType(){
        List<Business> list = businessService.list();
        return Result.success(list);
    }

}
